﻿<Application
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:TouchControls="clr-namespace:TouchControls;assembly=TouchControls"
             xmlns:TouchExplorer="clr-namespace:TouchExplorer" x:Class="TouchExplorer.App"
             StartupUri="MainWindow.xaml"
    DispatcherUnhandledException="App_DispatcherUnhandledException"
    >
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Templates/FileAsList.xaml"/>
                <ResourceDictionary Source="Templates/FileAsTile.xaml"/>
                <ResourceDictionary Source="Templates/Directory.xaml"/>
                <ResourceDictionary Source="Assets/Bitmaps.xaml"/>
                <ResourceDictionary Source="Assets/TextStyles.xaml"/>
                <ResourceDictionary Source="Assets/Buttons.xaml"/>
                <ResourceDictionary Source="Assets/ListBox.xaml"/>
                <ResourceDictionary Source="Assets/SurfaceListBox.xaml"/>
                <ResourceDictionary Source="Assets/ScrollBars.xaml"/>
            </ResourceDictionary.MergedDictionaries>
            <TouchExplorer:BoolToVisibilityConverter x:Key="BoolToVisibilityConverter" />
            <LinearGradientBrush x:Key="ListSeparator" EndPoint="0.921,0.99" StartPoint="0.132,0.024">
                <GradientStop/>
                <GradientStop Offset="1"/>
                <GradientStop Color="#3FFFFFFF" Offset="0.55"/>
                <GradientStop Color="#4DFFFFFF" Offset="0.9"/>
                <GradientStop Color="#19FFFFFF" Offset="0.97"/>
            </LinearGradientBrush>
            <LinearGradientBrush x:Key="TopBorderBg" EndPoint="0.921,0.958" StartPoint="0.132,0.024">
                            <GradientStop Color="#FF7C7AC0"/>
                            <GradientStop Color="#FF010412" Offset="0.993"/>
            </LinearGradientBrush>
            <LinearGradientBrush x:Key="TopBorderBorder" StartPoint="0.057,0.086">
                            <GradientStop Color="#7FC7C8E9" Offset="0"/>
                            <GradientStop Color="#7F8E8AC0" Offset="1"/>
            </LinearGradientBrush>
            <Style x:Key="TopBorder" TargetType="{x:Type Border}">                
                <!--<Setter Property="CornerRadius" Value="0, 0 12, 12" />
                <Setter Property="Padding" Value="8" />-->
                <Setter Property="Background" Value="{StaticResource TopBorderBg}" />
            </Style>
            
            <Style x:Key="MainBorder" TargetType="{x:Type Border}">
                <Setter Property="BorderThickness" Value="4" />
                <Setter Property="BorderBrush">
                    <Setter.Value>
                        <LinearGradientBrush EndPoint="0.923,0.931" StartPoint="0.057,0.086">
                            <GradientStop Color="#FFE1F3F5" Offset="0"/>
                            <GradientStop Color="#FFB3D1DA" Offset="1"/>
                        </LinearGradientBrush>	
                    </Setter.Value>
                </Setter>
                <Setter Property="CornerRadius" Value="12" />
                <Setter Property="Padding" Value="8" />
                <Setter Property="Background">
                    <Setter.Value>
                        <LinearGradientBrush EndPoint="0.921,0.958" StartPoint="0.132,0.024">
                            <GradientStop Color="#B29AD4E0"/>
                            <GradientStop Color="#CCC4D7DE" Offset="0.993"/>
                        </LinearGradientBrush>
                    </Setter.Value>
                </Setter>
            </Style>
            <Style TargetType="{x:Type ComboBox}">
                <Setter Property="Height" Value="32" />
                <Setter Property="MinWidth" Value="48" />
                <Setter Property="FontSize" Value="14" />
            </Style>

            <Style TargetType="{x:Type TouchControls:TouchMenuItem}">
                <!-- blue : #5477B7 -->
                <!-- orange : #CE9A11 -->
                <Setter Property="Background" Value="#A04DB5" />
                <Setter Property="BorderBrush" Value="#A04DB5" />
                <Setter Property="Foreground" Value="White" />
                <Setter Property="CornerRadius" Value="0" />
            </Style>
        </ResourceDictionary>        
    </Application.Resources>
</Application>
